home *** CD-ROM | disk | FTP | other *** search
- # Collector Title
- $TITLE="Catalog Maker Order Collector";
- ###############################
- # END OF CHANGEABLE OPTIONS #
- ###############################
-
- ###############################
- # END OF CHANGEABLE OPTIONS #
- ###############################
-
- # START MAIN PROGRAM
- # ------------------
-
- if ($ENV{'GATEWAY_INTERFACE'} ne '') {
- $CGIScript = 1;
- print "Content-Type: text/html\n\n";
- print "<html><head><title>$TITLE</title></head><body>";
- print "<h3>Collected order forms </h2>";
- } else {
- $CGIScript = 0;
- print "Collected Order Forms\n\n";
-
- }
-
- while ($fileName = glob("*.frm")) {
- if ($CGIScript == 1) {
- print "<hr>$fileName<hr>";
- } else {
- print "\n----\n$fileName\n\n";
- }
- open(INPUT, "<$fileName");
- undef $/; # Read in the entire file
- $data = <INPUT>;
- if ($CGIScript == 1) {
- $data = s/\n/<br>/g; # replace newlines with <br>
- }
- print $data;
- unlink($fileName);
- } # for every session data file available.
- if (CGIScript == 1) {
- print "<hr>Created by the HyperAct Catalog Maker</body></html>";
- } else {
- print "\n----\nCreate by the HyperAct Catalog Maker\n";
- }
-
-